 interface IShape{
    void print();
}

class Cycle implements IShape{

    @Override
    public void print() {
        System.out.println("●");
    }
}
class Flower implements IShape{
    @Override
    public void print() {
        System.out.println("❀");
    }
}

class Triangle implements IShape{
    @Override
    public void print() {
        System.out.println("△");
    }
}

public class TextDemo {
    public static void main(String[] args) {

        IShape[] Ishapes= new IShape[]{new Flower(),new Triangle(),new Cycle()};

        for(int i =0;i<Ishapes.length;i++){
            Ishapes[i].print();
        }
    }
}
